    <div id="breadcrumbs"><?php echo $this->Html->link('Home', array('controller' => 'contents', 'action' => 'view', 'home')); ?>> List Subscribers
</div>

<div class="subscribers index">
    <h2><?php echo __('List of Subscribers'); ?></h2>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo $this->Paginator->sort('sub_name', 'Name'); ?></th>
            <th><?php echo $this->Paginator->sort('sub_organisation', 'Organisation'); ?></th>
            <th><?php echo $this->Paginator->sort('sub_active', 'Active'); ?></th>
            <th>View</th>
            <th>Edit</th>
            <th>Delete</th>
        </tr>
        <?php foreach ($subscribers as $subscriber): ?>
            <tr>
                <td><?php echo h($subscriber['Subscriber']['sub_name']); ?>&nbsp;</td>
                <td><?php echo h($subscriber['Subscriber']['sub_organisation']); ?>&nbsp;</td>
                <td><?php
                    if ($subscriber['Subscriber']['sub_active'] == 1) {
                        echo "Yes";
                    } else {
                        echo "No";
                    }
                    ?>&nbsp;</td>
                <td><?php echo $this->Html->image('view.png', array('alt' => 'View', 'url' => array('action' => 'view', $subscriber['Subscriber']['sub_id']))); ?></td>
                <td><?php echo $this->Html->image('edit.png', array('alt' => 'Edit', 'url' => array('action' => 'edit', $subscriber['Subscriber']['sub_id']))); ?></td>
                <td><?php echo $this->Form->postLink($this->Html->image('delete.png', array('alt' => __('Delete'))), array('action' => 'delete', $subscriber['Subscriber']['sub_id']), array('escape' => false, 'confirm' => __('Are you sure you want to delete ' . $subscriber['Subscriber']['sub_name'] . '?'))); ?></td>
            </tr>
        <?php endforeach; ?>
    </table>  
    <div class="paging">
        <?php
        echo $this->Paginator->prev('< ' . __('Previous'), array(), null, array('class' => 'prev disabled'));
        echo $this->Paginator->numbers(array('separator' => ''));
        echo $this->Paginator->counter(array('format' => __('Page {:page} of {:pages}')));
        echo $this->Paginator->next(__('Next') . ' >', array(), null, array('class' => 'next disabled'));
        ?>
    </div>

</div>

<div class="actions">
    <h3><?php echo __('Actions'); ?></h3>
    <ul>
        <li><?php echo $this->Html->link(__('New Subscriber'), array('action' => 'add')); ?></li>
        <li><?php echo $this->Html->link('Export Contact List <i class="icon-pencil"></i>', array('controller' => 'subscribers', 'action' => 'excel'), array('escape' => false)); ?> </li>
    </ul>
</div>
